function shallow(obj){
   let res={}
   for(key in obj){
    if(obj.hasOwnproperty(key)){
        res[key]=obj[key]
    }
   }
   return res
}
function deep(obj){
    let res=Array.isArray(obj)?[]:{}
    for(key in obe){
        if(obj.hasOwnproperty(key)){
            if(typeof(obj[key])==='object'&&typeof(obj[key])!=='null'){
                return deep(obj[key])
            }
            else{
                res[key]=obj[key]
            }
        }
    }
    return res
}